package com.lock.springbootdistributedlock.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DistributedLock {
    String key();
    long timeout() default 10;
    TimeUnit timeUnit() default TimeUnit.SECONDS;
}
